Skip to content

fix(git-node): fix handling of existing trailers#1056

Open
aduh95 wants to merge 1 commit intonodejs:mainfrom
aduh95:fix-PR-URL-handling
Open

fix(git-node): fix handling of existing trailers#1056
aduh95 wants to merge 1 commit intonodejs:mainfrom
aduh95:fix-PR-URL-handling

Conversation

@aduh95
Copy link
Copy Markdown
Contributor

@aduh95 aduh95 commented Apr 1, 2026

In nodejs/node#62401, the author has added manually the PR-URL for some reason, which gets filtered out since #1036. However, we had another piece of code that skips adding metadata that was on the original commit message – which was filtered out.

This PR is taking a different approach of removing all the original trailers, adding back the one we won't add ourselves, and finally adding all the "automated ones".

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.56%. Comparing base (72e8772) to head (5118f34).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1056   +/-   ##
=======================================
  Coverage   80.56%   80.56%           
=======================================
  Files          39       39           
  Lines        4846     4846           
=======================================
  Hits         3904     3904           
  Misses        942      942           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant